import request from '../utils/request'

export default{
  //课程带条件分页
  pageList(current,size,course){
    return request({
      url:`/course/pageCourse/${current}/${size}`,
      method:'post',
      data:course
    })
  },
  //查询课程详情
  getDetails(id){
    return request({
      url:`/course/detailByCourseId/${id}`,
      method:'get'
    })
  },
  //首页搜索框查询
  searchMain(title){
    return request({
      url: `/course/courseSearch/${title}`,
      method: 'get'
    })
  },
  //课程推荐
  recommand(subjectId){
    return request({
      url: `/course/recommand/${subjectId}`,
      method: 'get'
    })
  }

}
